package com.ai.tikai.dto;

import com.ai.tikai.entity.SuggestionsLable;
import com.ai.tikai.enums.AuditSuggestion;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;
@Data
@JsonPropertyOrder({
        "commentId",
        "overallSuggestion",
        "overallScore",
        "details",
        "rawResponse",
        "auditTimestamp"
})
public class CommentAuditResultDTO {
    /**
     * 关联的评论ID
     */
    private Long commentId;

    /**
     * 最终的审核建议 (核心结论)
     * 1:pass: 通过
     * 0:reject: 拒绝/拦截
     */
    private AuditSuggestion overallSuggestion;

    /**
     * 针对最终建议的置信度得分 (0.0 - 100.0)
     * 分数越高，代表AI对这个结论越有把握
     */
    private Double overallScore;

    /**
     * 审核命中详情 (最关键的部分)
     * 一个评论可能同时命中多个标签，例如"色情"和"广告"
     */
    private List<SuggestionsLable> details;
    /**
     * AI服务返回的原始响应体 (JSON字符串)
     * 用于排查问题和未来审计，非常重要
     */
    private String rawResponse;

    /**
     * 审核完成的时间戳
     */
    private LocalDateTime auditTimestamp;


    }


